<?php





namespace app\mini\controller;



// use app\BaseController as BaseController;

use app\mini\model\PersonCustomer as PersonCustomerModel;

use think\response\Json;





class PersonCustomer extends Access

{

    /**

     * 员工负责客户列表

     * @return Json

     * @author hz

     * @create 2021-10-26

     */

    public function index(): Json

    {
        $request = request()->param();
        // echo "<pre>";
        // print_r($request);
        // echo "</pre>";
        // exit;

        $this->param = request()->param();

        $personCustomerModel = new PersonCustomerModel();

        // $this->param['customer_id'] = $this->customerId;// 员工端则为员工id

        $data = $personCustomerModel->getCustomerList($this->param);

        return resultArray($data);

    }

}